<html>
<head>
<style type="text/css">
.hide{
	display: none !important;
}
</style>
</head>
<head>
	<script type="text/javascript">
		var aJaxURL	= "server-side/report/research.action.php";
		var aJaxURL1	= "server-side/view/sales/sales.action1_1.php";
		var aJaxURL2	= "server-side/call/outgoing/outgoing_tab3.action.php";			//server side folder url
		var tName	= "example";													//table name
		var fName	= "add-edit-form";
														//form name
		    	
		$(document).ready(function () {        	
			LoadTable();	
						
			/* Add Button ID, Delete Button ID */		
			SetEvents("", "", "", tName, fName, aJaxURL2);

		});
        
		function LoadTable(){
			
			/* Table ID, aJaxURL, Action, Colum Number, Custom Request, Hidden Colum, Menu Array */
			GetDataTable(tName, aJaxURL, "get_list", 8, "", 0, "", 0, "desc");
    		
		}
		
		function LoadDialog(fName){
			var butn = {
			        "cancel": {
			            text: "დახურვა",
			            id: "cancel-dialog",
			            click: function () {
			                $(this).dialog("close");
			            }
			        }
			    };
			GetDialog(fName, 1210, "auto", butn);
			$("#add-edit-form input, #add-edit-form textarea, #add-edit-form select").prop('disabled', true);
			GetDataTable("exampleee_5", aJaxURL1, "get_list", 5,"cl_id="+$("#hhhh_id").val(), 0, "", 1, "asc", "");
			var template_id = $("#template_id").val();
		    if(template_id == 1){
		    	$( "#mitanis_dro" ).addClass( "hide" );
		    	$( "#montagis_dro" ).addClass( "hide" );
		    	$( "#momsaxureba" ).removeClass( "hide" );
		    	$( "#gadazidva" ).removeClass( "hide" );
		    	$( "#montagi" ).removeClass( "hide" );
		    	
		    }
		    if(template_id == 3){
		    	$( "#mitanis_dro" ).addClass( "hide" );
		    	$( "#montagis_dro" ).removeClass( "hide" );
		    	$( "#momsaxureba" ).addClass( "hide" );
		    	$( "#gadazidva" ).addClass( "hide" );
		    	$( "#montagi" ).addClass( "hide" );
		    }
		    if(template_id == 4){
		    	$( "#mitanis_dro" ).removeClass( "hide" );
		    	$( "#montagis_dro" ).addClass( "hide" );
		    	$( "#momsaxureba" ).addClass( "hide" );
		    	$( "#gadazidva" ).addClass( "hide" );
		    	$( "#montagi" ).addClass( "hide" );
		    }
		    if(template_id == 5){
		    	$( "#mitanis_dro" ).addClass( "hide" );
		    	$( "#montagis_dro" ).addClass( "hide" );
		    	$( "#momsaxureba" ).removeClass( "hide" );
		    	$( "#gadazidva" ).addClass( "hide" );
		    	$( "#montagi" ).addClass( "hide" );
		    }
		}
    </script>
</head>

<body>
    <div id="dt_example" class="ex_highlight_row" style="width: 98%; margin: 0 auto;">
        <div id="container" style="width: 98%; margin: 0 auto;">        	
            <div id="dynamic">
            	<h2 align="center">გამავალი ზარი</h2>
            	
                <table class="display" id="example">
                    <thead >
                        <tr id="datatable_header">
                            <th>ID</th>
                            <th style="width: 100%;">ინტერვიუერი</th>
                            <th style="width: 100%;">სცენარი</th>
                            <th style="width: 100%;">მიტანის დრო</th>
                            <th style="width: 100%;">მონტაჟის დრო</th>
                            <th style="width: 100%;">კონსულტაციის მომსახურება</th>
                            <th style="width: 100%;">გადაზიდვის სერვისი</th>
                            <th style="width: 100%;">მონტაჟის სერვისი</th>
                        </tr>
                    </thead>
                    <thead>
                        <tr class="search_header">
                            <th class="colum_hidden">
                                <input type="text" name="search_category" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_category" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_category" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_category" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_category" value="ფილტრი" class="search_init" />
                            </th>
                          	<th>
                                <input type="text" name="search_category" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_category" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_category" value="ფილტრი" class="search_init" />
                            </th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
    </div>
    
    <!-- jQuery Dialog -->
    <div id="add-edit-form" class="form-dialog" title="ქალაქი">
    	<!-- aJax -->
	</div>
</body>
</html>


